﻿using Aurora.AI.Abstractions;
using Aurora.AI.Abstractions.Chats;
using Aurora.AI.Claudia.Chats;
using Microsoft.Extensions.DependencyInjection;

namespace Aurora.AI.Claudia.Extensions
{
    public static class ClaudiaServiceCollectionExtensions
    {
        public static IServiceCollection AddClaudiaService(this IServiceCollection services)
        {
            AuroraAIGlobal.PlatformNames.Add(ClaudiaPlatformOptions.PlatformName, ClaudiaPlatformOptions.PlatformCode);

            services.AddKeyedSingleton<IAuroraAIChatCompletionsService, ClaudiaChatCompletionsService>(ClaudiaPlatformOptions.PlatformCode);
            return services;
        }
    }
}